//
//  CommonUtil.m
//  Easytour
//
//  Created by pachira on 16/7/25.
//  Copyright © 2016年 pachira. All rights reserved.
//

#import "CommonUtil.h"

@implementation CommonUtil

//获取当前城市ID
//+ (NSString *)getCityID{
//    return [userDefault objectForKey:KUserDefaultKey_CityID]?[userDefault objectForKey:KUserDefaultKey_CityID]:@"12597";
//}
//获取当前城市名称
//+ (NSString *)getCityName{
//    return [userDefault objectForKey:KUserDefaultKey_CityName]?[userDefault objectForKey:KUserDefaultKey_CityName]:@"杭州市";
//}
//拼接图片URL地址
+(NSURL *)getImageUrl:(NSString *)imageID{
    NSString *urlStr = [ImageURL stringByAppendingFormat:@"%@?id=%@",InterfaceImage,imageID];
    NSURL *url = [NSURL URLWithString:urlStr];
    return url;
}

//+(NSURL *)getCarImageUrl:(NSString *)imageID{
//    NSString *urlStr = [ImageURL stringByAppendingFormat:@"/img/car/%@",imageID];
//    NSURL *url = [NSURL URLWithString:urlStr];
//    return url;
//}

@end
